package com.cap.bts.framework.location.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
//@Entity
//@Table(name="TM_LOCATION")
@AttributeOverrides({
    @AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
    @AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class LocationInfo extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String locationNo;
    private String warehouseName;
    private Long status;  
    private String description;
    
    /**
     * @author huiwu
     * @data：Oct 14, 2014
     * @return
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * @author huiwu
     * @data：Oct 14, 2014
     * @return
     */
    @Column(name="LOCATION_NO", nullable=false)
    public String getLocationNo() {
        return locationNo;
    }
    public void setLocationNo(String locationNo) {
        this.locationNo = locationNo;
    }
    /**
     * @author huiwu
     * @data：Oct 14, 2014
     * @return
     */
    @Column(name="WAREHOUSE_NAME", nullable=false)
    public String getWarehouseName() {
        return warehouseName;
    }
    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }
    /**
     * @author huiwu
     * @data：Oct 14, 2014
     * @return
     */
    @Column(name="STATUS", nullable=false)
    public Long getStatus() {
        return status;
    }
    public void setStatus(Long status) {
        this.status = status;
    }
    @Column(name="DESCRIPTION")
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    
}
